@model University.Models.Schedule

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Schedule</legend>

    <div class="display-label">Group</div>
    <div class="display-field">@(Model.Group == null ? "None" : Model.Group.Name)</div>

    <div class="display-label">Semestru</div>
    <div class="display-field">@Model.Semestru</div>

    <div class="display-label">ScheduleItems</div>
    <div class="display-field">@(Model.ScheduleItems == null ? "None" : Model.ScheduleItems.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ScheduleId }) |
    @Html.ActionLink("Back to List", "Index")
</p>


